package com.example.lvsuo.mapper.cxg;

import com.example.lvsuo.entity.cxg.vo.FlowDataLine;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FlowLineMapper {


    void addLines(List flowlines);

    @Delete(" delete from flow_line where fid = #{value} ")
    void delLineByFid(String fid);

    @Select(" select * from flow_line fl, flow_node fn,flow_name fnam where fl.line_current=fn.id and fl.fid = fnam.id and fl.fid = #{value} ")
    List<FlowDataLine> queryLineByid(String fid);
}
